import request from '@/utils/request'



// 查询领养人信息
export function listAdopt(query) {
    return request({
        url: '/archives/adoptInfo',
        method: 'get',
        params: query,
    })
}


// 删除领养人信息
export function delAdopt(adoptId) {
    return request({
        url: '/archives/adoptInfo/' + adoptId,
        method: 'delete'
    })
}


// 新增领养人信息
export function addAdopt(data) {
    return request({
        url: '/archives/adoptInfo/createInfo',
        method: 'post',
        data: data
    })
}

// 修改领养人信息
export function updateAdopt(data) {
    return request({
        url: '/archives/adoptInfo',
        method: 'put',
        data: data
    })
}

// 查询岗位详细
export function getAdopt(adoptId) {
    return request({
        url: '/archives/adoptInfo/' + adoptId,
        method: 'get'
    })
}